package com.xcf.service.business.common.transportclause.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import com.xcf.dao.DaoSupport;
import com.xcf.service.business.common.transportclause.TransportClauseService;
import com.xcf.util.PageData;
@Service("TransportClauseService")
public class TransportClauseServiceImpl implements TransportClauseService{
	@Resource(name = "daoSupport")
	private DaoSupport dao;
	@SuppressWarnings("unchecked")
	public List<PageData> findTransportClauseInfo(PageData pd) throws Exception{
		return (List<PageData>)dao.findForList("TransportClause.findTransportClause", pd);

	}
	@Override
	public void addTransportClauseInfo(PageData pd) throws Exception {
		dao.save("TransportClause.saveTransportClause", pd);
		
	}
	@Override
	public void updateTransportClause(PageData pd) throws Exception {
		dao.update("TransportClause.updateTransportClause", pd);
		
	}

	@Override
	public PageData findTransportClauseInfoById(PageData pd) throws Exception {
		
		return (PageData)dao.findForObject("TransportClause.findTransportClauseById", pd);
	}
	@Override
	public void deleteTransportClause(PageData pd) throws Exception {
		dao.delete("TransportClause.deleteTransportClauseById", pd);
		
	}

}
